package com.tdf.webblog.service.serviceImpl;

import com.tdf.webblog.dao.AdminRolePermissionDAO;
import com.tdf.webblog.entity.AdminRolePermission;
import com.tdf.webblog.service.AdminRolePermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdminRolePermissionServiceImpl implements AdminRolePermissionService {

    @Autowired
    private AdminRolePermissionDAO adminRolePermissionDAO;

    @Override
    public List<AdminRolePermission> findAllByRid(int rid) {

        return adminRolePermissionDAO.findAllByRid1(rid);
    }
}
